package com.example.demo.controller;

import com.example.demo.common.Result;
import com.example.demo.entity.Book;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class LoginController {

    @GetMapping
    public Result<?>  loginTest(String ticket) {
        if ("hh".equals(ticket)){
            return Result.success();
        }else{
            return Result.error("401","ticket错误");
        }
    }

}
